From: Guido Günther Date: Wed, 30 Nov 2022 08:57:38 +0000 (+0100) Subject: docs: Switch example to gtk-3-24 branch X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~2^2~20^2~1 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=47bfc83931c57da0476ea074d970e699d1240222;p=gtk%2B3.0.git docs: Switch example to gtk-3-24 branch Let's use recent examples. --- diff --git a/docs/reference/gtk/getting_started.xml.in b/docs/reference/gtk/getting_started.xml.in index efa604c862..fb9705efe5 100644 --- a/docs/reference/gtk/getting_started.xml.in +++ b/docs/reference/gtk/getting_started.xml.in @@ -450,7 +450,7 @@ example_app_window_class_init (ExampleAppWindowClass *class) ... ]]> - (full source) + (full source) You may have noticed that we used the _from_resource() variant @@ -518,7 +518,7 @@ example_app_window_class_init (ExampleAppWindowClass *class) ... ]]> - (full source) + (full source) Now we revisit the example_app_window_open() function that @@ -567,7 +567,7 @@ example_app_window_open (ExampleAppWindow *win, ... ]]> - (full source) + (full source) Note that we did not have to touch the stack switcher @@ -665,7 +665,7 @@ example_app_class_init (ExampleAppClass *class) ... - (full source) + (full source) Our preferences menu item does not do anything yet, @@ -731,7 +731,7 @@ example_app_window_init (ExampleAppWindow *win) ... ]]> - (full source) + (full source) The code to connect the font setting is a little more involved, @@ -780,7 +780,7 @@ preferences_activated (GSimpleAction *action, ... ]]> - (full source) + (full source) After all this work, our application can now show @@ -866,7 +866,7 @@ example_app_window_init (ExampleAppWindow *win) ... ]]> - (full source) + (full source) With the search bar, our application now looks like this: @@ -926,7 +926,7 @@ example_app_window_init (ExampleAppWindow *win) ... ]]> - (full source) + (full source) What our application looks like now: @@ -989,12 +989,12 @@ example_app_window_init (ExampleAppWindow *win) ... - (full source) + (full source) We also need a function that counts the lines of the currently active tab, and updates the @lines label. See the - full source + full source if you are interested in the details. This brings our example application to this appearance: